// 蜂窝蜜造平台生成代码，如手工更改，请添加到 .beeignore 忽略生成

package com.fowo.api.entity;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fowo.api.common.annotaion.*;
import io.swagger.v3.oas.annotations.media.Schema;
import java.io.Serializable;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;

/**
 * ProcessProduct
 */
@DS("ds24")
@Getter
@Setter
@TableName(value = "process_product", autoResultMap = true)
@Schema(title = "加工单")
public class ProcessProduct implements Serializable {

  /**
   * 编号
   */
  @TableField(value = "`id`")
  @TableId(type = IdType.ASSIGN_ID)
  @Schema(title = "编号")
  private Long id;

  /**
   * 单号
   */
  @TableField(value = "`process_sn`")
  @Schema(title = "单号")
  private String processSn;

  /**
   * 供应商
   */
  @TableField(value = "`supplier`")
  @JoinField(Supplier.class)
  @Schema(title = "供应商")
  private Long supplier;

  /**
   * 加工日期
   */
  @TableField(value = "`pdate`")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  @Schema(title = "加工日期")
  private java.util.Date pdate;

  /**
   * 仓库
   */
  @TableField(value = "`wid`")
  @JoinField(Warehouse.class)
  @Schema(title = "仓库")
  private Long wid;

  /**
   * 创建时间
   */
  @TableField(value = "`create_time`")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  @Schema(title = "创建时间")
  private java.util.Date createTime;

  /**
   * 创建人
   */
  @TableField(value = "`create_user`")
  @Schema(title = "创建人")
  private Long createUser;

  /**
   * 更新时间
   */
  @TableField(value = "`last_update_time`")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  @Schema(title = "更新时间")
  private java.util.Date lastUpdateTime;

  /**
   * 更新人
   */
  @TableField(value = "`last_update_user`")
  @Schema(title = "更新人")
  private Long lastUpdateUser;

  /**
   * 删除标记
   */
  @TableField(value = "`del_flag`")
  @TableLogic
  @Schema(title = "删除标记")
  private Boolean delFlag;

  /**
   * 单据类型 (1 - 加工单; )
   */
  @TableField(value = "`type`")
  @Schema(title = "单据类型")
  private String type;

  /**
   * 状态 (0 - 草稿; 1 - 已提交; )
   */
  @TableField(value = "`status`")
  @Schema(title = "状态")
  private String status;

  /**
   * 推送应付单 (0 - 未推送; 1 - 失败; 2 - 成功; )
   */
  @TableField(value = "`generate_ap`")
  @Schema(title = "推送应付单")
  private String generateAp;

  /**
   * 备注
   */
  @TableField(value = "`remarks`")
  @Schema(title = "备注")
  private String remarks;

  /**
   * 入库单
   */
  @TableField(value = "`whid`")
  @Schema(title = "入库单")
  private String whid;

  /**
   * 入库单号
   */
  @TableField(value = "`wcode`")
  @Schema(title = "入库单号")
  private String wcode;
}
